<template>
  <div class="navBar mb-4" >
    <van-nav-bar title="" left-text="返回" right-text=""
    left-arrow fixed @click-left="onClickLeft"/>
  </div>
</template>

<script>
export default {
  name: 'navBar',
  props: ['routerName'],
  components: {
  },
  data () {
    return {
    }
  },
  watch: {

  },
  mounted () {
  },
  methods: {
    onClickLeft () {
      this.$router.replace({ name: this.routerName })
    }
  }
}

</script>
<style scoped lang='scss'>
</style>
